\documentclass[20pt]{article}%book,report,letter
% 导言区
% 启用支持中文方式1
% \documentclass[UTF8]{ctexart} 
% 启用支持中文方式2
\usepackage[UTF8]{ctex}
% 导入amsmath宏包启用不编号公式equation*环境
\usepackage{amsmath}
% 导入amssymb宏包启用多行公式
\usepackage{amssymb}
\title{Latex Basics Notes}
\author{\textbf{\textit{Albert Darren}}\thanks{Email:2563491540@qq.com}}
% \author{\heiti\textbf{邓禧炜} }
\date{\today}

% 正文区(文稿区)
\begin{document}
    \maketitle % 输出标题
    % \tableofcontents % 生成目录
    \section{字体字号设置}
    \subsection{字体族设置(罗马字体，无衬线字体，打字机字体)}

    \subsubsection{\textrm{Roman Family 罗马字体\\}
    In the era of the Internet and big data, information is spreading rapidly, and the protection of personal privacy and information security are more important. Set boundaries for your privacy, don't let it be set by others} 
    % \rmfamily Roman Family

    \subsubsection{\textsf{Sans serif family 无衬线字体\\}
    Have you ever received such a text message or a cold call like this? Have you ever had QQ number stolen and lots of malicious QR codes appear in QQ group? Do you consider your personal privacy isn’t really safe?}
    % \sffamily Sans serif family 无衬线字体

    \subsubsection{\texttt{Typerwriter Family 打字机字体\\}
    Your personal life will be better if you take the right and necessary measures to protect your privacy and information security. }
    % \ttfamily Typerwriter Family 打字机字体

    \subsection{字体系列设置(粗细,宽度)}

    \textmd{Medium Series 宽度} \textbf{Boldface Series 加粗}

    \subsection{字体形状(直立，斜体，伪斜体，小型大写)}

    \subsubsection{\textup{Upright Shape 直立} }

    \subsubsection{\textit{Italic Shape 斜体}}

    \subsubsection{\textsl{Slanted Shape 伪斜体}}

    \subsubsection{\textsc{Small Caps Shape 小型大写}}

    \subsection{中文字体}
    \subsubsection{{\songti 宋体}}
    \subsubsection{{\heiti 黑体}}
    \subsubsection{{\fangsong 仿宋}}
    \subsubsection{{\kaishu 楷书}}
    \subsection{字体大小}
    \subsubsection{\tiny hello}
    \subsubsection{\scriptsize hello}
    \subsubsection{\footnotesize hello}
    \subsubsection{\small hello}
    \subsubsection{\normalsize hello}
    \subsubsection{\large hello}
    \subsubsection{\Large hello}
    \subsubsection{\LARGE hello}
    \subsubsection{\huge hello}
    \subsubsection{\Huge hello}
    \subsection{中文字号设置命令}
    \zihao{4} 你好
    \section{文档基本结构}
    \section{特殊字符}
    \subsection{\LaTeX控制字符}
    \$ \% \^ \# \{ \} \_ \textbackslash

    \LaTeX{} \LaTeXe{}

    \subsection{引号}
    `英文单引号' ``英文双引号''

    ‘中文单引号’ “中文双引号”

    \subsection{连字符}
    - -- ---
    \section{插图}
    \section{表格}
    \section{浮动体}
    \section{数学公式初步}
    \subsection{行内公式}
    \subsubsection{美元符号}
    矩阵不满足交换律,即$AB \neq BA$
    $f(x) = x^2 \quad f'(x)= 2x \quad f''^{2}(x) = 4
    \quad f^{n}(x)=0$


    \subsubsection{小括号}
    矩阵不满足交换律,即\(AB \neq BA\)
    \subsubsection{math环境}
    矩阵不满足交换律,即\begin{math}AB \neq BA\end{math}
    \subsection{上下标}
    \subsubsection{上标}
    $f(x)=ax^2+bx+c $

    \(3x^{20}+4y^{10}=l\)

    \(3x^{ax^2+bx+c}+4y^{10}=l\)
    \subsubsection{下标}
    \(a_1,a_2,a_3,\cdots,a_{n-1},a_n\)
    \subsection{希腊字母}
    \(\alpha \beta \gamma \)

    \(\delta \epsilon \varepsilon  \)

    \(\theta \vartheta \iota \)
    $\Omega$
    \subsection{分式}
    \[\frac{sinx}{x}\]
    in display style:$\dfrac{sinx}{x}$
    in text style :$\tfrac{sinx}{x}$
    Pascal's rule is
    \[
    \binom{n}{k} =\binom{n-1}{k}
    + \binom{n-1}{k-1}
    \]
    \subsection{行间公式}
    \subsubsection{双美元符号\$\$}
    矩阵不满足交换律,即$$AB \neq BA$$
    \subsubsection{中括号[]}
    矩阵不满足交换律,即\[AB \neq BA\]
    \subsubsection{displaymath}
    矩阵不满足交换律,即\begin{displaymath}
        AB \neq BA
    \end{displaymath}
    \subsubsection{自动编号公式equation环境}
    交换律形如\ref{eq:exchange law}
    \begin{equation}
        a+b=b+a \label{eq:exchange law}
    \end{equation}
    \subsubsection{不编号公式equation*环境}
    \begin{equation*}
        a+b=b+a
    \end{equation*}
    \section{数学公式的矩阵}
    % 矩阵环境，使用&分隔列，\\分隔行
    \subsection{无括号和竖线的矩阵}
    \[
    \begin{matrix}
        1 & 0\\
        0 & 1
    \end{matrix}\]
    \subsection{加小括号的矩阵}
    \[
    \begin{pmatrix}
        1 & 0\\
        0 & 1
    \end{pmatrix}\]
    \subsection{加中括号的矩阵}
    \[
    \begin{bmatrix}
        1 & 0\\
        0 & 1
    \end{bmatrix}\]
    \subsection{加大括号的矩阵}
    \[
    \begin{Bmatrix}
        1 & 0\\
        0 & 1
    \end{Bmatrix}\]
    \subsection{矩阵的行列式}
    \[
    \begin{vmatrix}
        1 & 0\\
        0 & 1
    \end{vmatrix}\]
    \subsection{矩阵的范数}
    \[
    \begin{Vmatrix}
        1 & 0\\
        0 & 1
    \end{Vmatrix}_{\infty} \]
    \[
    \begin{Vmatrix}
        1 & 0\\
        0 & 1
    \end{Vmatrix}_1 \]
    \[
    \begin{Vmatrix}
        1 & 0\\
        0 & 1
    \end{Vmatrix}_2 \]
    \subsection{带上下标的矩阵}
    \[
        \begin{bmatrix}
            a_{11}^1 & a_{12}^1 & a_{13}^1\\
            a_{21}^2 & a_{22}^2 & a_{23}^2\\
            a_{31}^3 & a_{32}^3 & a_{33}^3\\
        \end{bmatrix}\]
    \subsection{带省略号的矩阵}
    % 常用的省略号，\dots,\vdots,\ddots
    \[
        \begin{bmatrix}
            a_{11}^1 & a_{12}^1 & a_{13}^1\\
            \vdots & \vdots & \vdots\\
            a_{n1}^n & a_{n2}^n & a_{nn}^n\\
        \end{bmatrix}\]
    \[
      A=  \begin{bmatrix}
            a_{11} & a_{12} &\dots & a_{1n}\\
                   &\ddots & \vdots & a_{2n}\\
                   &&&a_{nn}
        \end{bmatrix}_{n \times n}
        \]
    \subsection{分块矩阵(矩阵嵌套)}
    \[
      A=  \begin{pmatrix}
            \begin{matrix}
               1&0\\
               0&1 
            \end{matrix} &\text{\Large 0}\\
            \text{\Large 0}&\begin{matrix}
                                1&0\\
                                0&1 
                            \end{matrix}
        \end{pmatrix}
        \begin{pmatrix}
            \begin{matrix}
               1&0\\
               0&1 
            \end{matrix} &\text{\Large 0}\\
            \text{\Large 0}&\begin{matrix}
                                1&0\\
                                0&1 
                            \end{matrix}
        \end{pmatrix}\]
    \section{数学公式的多行公式}
    \subsection{gather环境}
    % gather环境实现多行公式自动编号
    \subsubsection{gather多行公式自动编号}
    \begin{gather}
        a+b=b+a\\
        c+d=d+c
    \end{gather}
    % gather*环境实现多行公式不编号
    \subsubsection{gather*多行公式不编号}
    \begin{gather*}
        a+b=b+a\\
        c+d=d+c
    \end{gather*}
    \subsection{align环境}
    % 使用&对齐
    \subsubsection{带编号align}
    \begin{align}
        x&=t &t&=l& l&=m\\
        y&=t &t&=l& l&=x
    \end{align}
    \subsubsection{不带编号align*}
    \begin{align*}
        x&=t &t&=l& l&=m\\
        y&=t &t&=l& l&=x
    \end{align*}
    % \section{参考文献BibTex}
    % \section{参考文献BibLaTex}
    % \section{自定义命令和环境}
\end{document}

    
    